package com.alibaba.springbootrbac.mapper;

import com.alibaba.springbootrbac.model.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限管理的mapper
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 根据用户ID查询用户的权限列表
     */
    List<Permission> selectPermissionsByUserId(@Param("userId") String userId);

}
